package com.hxzy.common.exception;

import com.hxzy.common.enums.AckCode;
import lombok.Getter;

/**
 * 自定义一个异常
 */
@Getter
public class ServiceException extends  RuntimeException{

    private AckCode  ackCode;

    public ServiceException(AckCode ackCode) {
        super(ackCode.getMsg());
        this.ackCode = ackCode;
    }


}
